<?php
/**
 * @TABLE "group_content"
 * @JOIN_FROM "geometry_id < geometry.id"
 * @JOIN_FROM "group_id < group.id"
 * @JOIN_FROM "user_id < user.id"
 * @JOIN_TO "id > group_content_comment.group_content_id"
 */
class BaseGroupContent extends Abstract_PluginEntityManager_Entity
{
	/**
	 * @PRIMARY
	 * @COLUMN "id"
	 * @TYPE "int"
	 * @LENGTH "10"
	 * @NOT_NULL
	 * @AUTO_INCREMENT
	 */
	public $id;

	/**
	 * @COLUMN "lang_id"
	 * @TYPE "tinyint"
	 * @LENGTH "3"
	 * @NOT_NULL
	 */
	public $lang_id;

	/**
	 * @COLUMN "user_id"
	 * @TYPE "int"
	 * @LENGTH "10"
	 * @NOT_NULL
	 */
	public $user_id;

	/**
	 * @COLUMN "group_id"
	 * @TYPE "int"
	 * @LENGTH "10"
	 * @NOT_NULL
	 */
	public $group_id;

	/**
	 * @COLUMN "user_ip"
	 * @TYPE "varchar"
	 * @LENGTH "40"
	 * @NOT_NULL
	 */
	public $user_ip;

	/**
	 * @COLUMN "geometry_id"
	 * @TYPE "int"
	 * @LENGTH "10"
	 */
	public $geometry_id;

	/**
	 * @COLUMN "type"
	 * @TYPE "enum"
	 * @LENGTH "'photo','video','post','discussion'"
	 * @NOT_NULL
	 */
	public $type;

	/**
	 * @COLUMN "external"
	 * @TYPE "varchar"
	 * @LENGTH "255"
	 */
	public $external;

	/**
	 * @COLUMN "status"
	 * @TYPE "enum"
	 * @LENGTH "'visible','encoding','deleted','banned','hidden','toactivate'"
	 * @NOT_NULL
	 */
	public $status;

	/**
	 * @COLUMN "title"
	 * @TYPE "varchar"
	 * @LENGTH "256"
	 */
	public $title;

	/**
	 * @COLUMN "title_url"
	 * @TYPE "varchar"
	 * @LENGTH "256"
	 */
	public $title_url;

	/**
	 * @COLUMN "description"
	 * @TYPE "varchar"
	 * @LENGTH "512"
	 */
	public $description;

	/**
	 * @COLUMN "comment_count"
	 * @TYPE "int"
	 * @LENGTH "4"
	 * @NOT_NULL
	 */
	public $comment_count;

	/**
	 * @COLUMN "view_count"
	 * @TYPE "int"
	 * @LENGTH "10"
	 * @NOT_NULL
	 * @DEFAULT "0"
	 */
	public $view_count;

	/**
	 * @COLUMN "filename"
	 * @TYPE "varchar"
	 * @LENGTH "255"
	 */
	public $filename;

	/**
	 * @COLUMN "encoder_token"
	 * @TYPE "int"
	 * @LENGTH "11"
	 */
	public $encoder_token;

	/**
	 * @COLUMN "date_added"
	 * @TYPE "timestamp"
	 * @NOT_NULL
	 * @DEFAULT "CURRENT_TIMESTAMP"
	 */
	public $date_added;

	/**
	 * @COLUMN "date_online"
	 * @TYPE "timestamp"
	 */
	public $date_online;

	/**
	 * @COLUMN "date_offline"
	 * @TYPE "timestamp"
	 */
	public $date_offline;

	/**
	 * @COLUMN "date_modified"
	 * @TYPE "timestamp"
	 */
	public $date_modified;
}
?>